IPAddressFilterElement Class [IIS 7 and higher]
Allows or denies access to content based on a unique combination of the IP address, subnet mask, and domain name.
Syntax
class IPAddressFilterElement : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the IPAddressFilterElement class.
Name |
Description |
---|---|
Allowed |
A read/write boolean value. true if access is granted to the location specified by the combination of the IPAddress, DomainName, and SubnetMask properties; otherwise; false. The default is false. |
DomainName |
A required unique read/write string value that specifies a domain name (for example, "www.contoso.com") or a wildcard domain name (for example, "*.contoso.com") to which access is granted or denied. A key property. |
IpAddress |
A required unique read/write string value that specifies an IP address to which access is granted or denied. A key property. |
SubnetMask |
A required unique read/write string value that corresponds to a subnet mask to which access is granted or denied. The default is 255.255.255.255. You can use this property in conjunction with the IpAddress property to specify a range of IP addresses. A key property. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the IpSecurity property of the IPSecuritySection class.
Inheritance Hierarchy
IPAddressFilterElement
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |